package com.hanko.designpattern.proxy;

import org.springframework.cglib.proxy.InvocationHandler;

import java.lang.reflect.Method;

/**
 * TODO
 *
 * @author hanko
 * @version 1.0
 * @date 2020/9/16 19:45
 */
public class DynamicProxySignatureService implements InvocationHandler {
    private Object obj;

    public DynamicProxySignatureService(Object obj) {
        this.obj = obj;
    }
    @Override
    public Object invoke(Object proxyObj, Method method, Object[] objects) throws Throwable {
        return method.invoke(obj,objects);
    }
}
